// 压型
import request from '@/utils/http'

// 新建筛分记录表
export function AddScreening (payload) {
  return request({
    url: '/v1/AddScreening',
    method: 'post',
    data: payload
  })
}
// 新建配料记录表
export function AddIngredients (payload) {
  return request({
    url: '/v1/AddIngredient',
    method: 'post',
    data: payload
  })
}
// 获取筛分记录表
export function GetScreening (payload) {
  return request({
    url: '/v2/GetScrRecord',
    method: 'get',
    params: payload
  })
}
// 获取配料记录表
export function GetIngredients (payload) {
  return request({
    url: '/v2/GetIngredRecord',
    method: 'get',
    params: payload
  })
}
// 修改筛分记录表
export function UpdateScreening (payload) {
  return request({
    url: '/v3/UpdateScreening',
    method: 'put',
    data: payload
  })
}

// 修改配料记录表
export function UpdateIngredient (payload) {
  return request({
    url: '/v3/UpdateIngredient',
    method: 'put',
    data: payload
  })
}
// 删除
export function Deleteforming (payload) {
  return request({
    url: '/v4/Delete',
    method: 'Delete',
    params: payload
  })
}
